package com.original.simuladoresws.service.impl;

import java.util.List;

import com.original.simuladoresws.dao.TaxIndexDao;
import com.original.simuladoresws.dao.impl.TaxIndexDaoImpl;
import com.original.simuladoresws.entities.TbTaxIndex;
import com.original.simuladoresws.service.TaxIndexService;

public class TaxIndexServiceImpl implements TaxIndexService {

	TaxIndexDao taxIndexDao = new TaxIndexDaoImpl();
	@Override
	public TbTaxIndex read(String taxId) {
		TbTaxIndex tax = new TbTaxIndex();
		List<TbTaxIndex> lsTaxIndex = taxIndexDao.read(TbTaxIndex.class, taxId);
		if (lsTaxIndex != null && lsTaxIndex.size() > 0) {
			tax = lsTaxIndex.get(0);
		}
		return tax;
	}

}
